<?php
/**
 * Nweb Framework
 *
 * This script is protected by copyright. It's use, copying, modification
 * and distribution without written consent of the author is prohibited.
 *
 * @category    source
 * @package     pl.nweb.framework.application.helper
 * @author      Krzysztof Kardasz <krzysztof.kardasz@gmail.com>
 * @copyright   Copyright (c) 2011 Krzysztof Kardasz
 * @license     http://www.gnu.org/licenses/lgpl-3.0.txt  GNU Lesser General Public
 * @version     3.0 $Id$
 * @link        http://code.google.com/p/nweb-framework/
 * @link        http://framework.nweb.pl
 */

namespace pl\nweb\framework\application\helper;

/**
 * Pomocnik aplikacji
 *
 * @category    source
 * @package     pl.nweb.framework.application.helper
 * @author      Krzysztof Kardasz <krzysztof.kardasz@gmail.com>
 * @copyright   Copyright (c) 2011 Krzysztof Kardasz
 * @version     3.0 $Id$
 */
class Broker
{
    /**
     * Obiekt żądanie
     *
     * @var \pl\nweb\framework\Request
     */
    private $_request = null;

    /**
     * Obiekt odpowiedzi
     *
     * @var \pl\nweb\framework\Response
     */
    private $_response = null;

    /**
     * Obiekt menadżera konfiguracji
     *
     * @var null|\pl\nweb\framework\application\Controller
     */
    private $_controller = null;

    /**
     * Konstruktor
     *
     * @param \pl\nweb\framework\application\Bootstrap
     * @return void
     */
    final public function __construct (\pl\nweb\framework\application\Controller $controller)
    {
        $this->_controller = $controller;
        $this->_request    = $controller->getRequest();
        $this->_response   = $controller->getResponse();
    }
}